projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ef473
)
Fix punycode short circuit logic
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 28 Dec 2015 18:13:51 +0000
(19:13 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 28 Dec 2015 18:13:51 +0000
(19:13 +0100)
* puny.el (puny-encode-domain): Fix short-circuit logic.
lisp/net/puny.el
patch
|
blob
|
history
diff --git
a/lisp/net/puny.el
b/lisp/net/puny.el
index 389a6dc270016362488567b27c8efd3ac1d400cb..a16e3a07706834aff81e372b41f50664a7daabf0 100644
(file)
--- a/
lisp/net/puny.el
+++ b/
lisp/net/puny.el
@@
-34,7
+34,7
@@
For instance, \"fśf.org\" => \"xn--ff-2sa.org\"."
;; The vast majority of domain names are not IDNA domain names, so
;; add a check first to avoid doing unnecessary work.
- (if (string-match "\\'[[:ascii:]]
*
\\'" domain)
+ (if (string-match "\\'[[:ascii:]]
+
\\'" domain)
domain
(mapconcat 'puny-encode-string (split-string domain "[.]") ".")))